package com.qf.fmall.order.service;

import com.qf.fmall.order.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

import java.text.ParseException;
import java.util.HashMap;

/**
 * <p>
 * 订单  服务类
 * </p>
 *
 * @author djl
 * @since 2024-04-30
 */
public interface IOrdersService extends IService<Orders> {

    /**
     * 下单接口
     * @param cids   购物id的数组
     * @param order  订单json对象
     * @return
     */
    HashMap<String, String> addOrder(Integer[] cids, Orders order) throws ParseException;

    /**
     * 根据订单编号，查询订单支付状态
     * @param orderid
     * @return
     */
    String queryOrder(String orderid);
}
